# 定义函数
def add(first_num,second_num):
    """两数相加"""
    try:
        first_num = int(first_num)
        second_num = int(second_num)
    except ValueError:
        print("输入类型有误：请重新输入")
    else:
        print(f"{first_num} + {second_num} = {first_num + second_num}")

# 调用函数
add(input("请输入第一个数字："),input("请输入第二个数字："))
